<template>
  <div class="service">
    <div class="cont">
      <div class="info">
        <Image
          class="avatar-img"
          alt="avatar"
          round
          lazy-load
          src="https://www.youtaotu.com/uploads/allimg/200719/1-200G91230220-L.jpg"
        />
        <p class="name">慕容羽馨</p>
        <p class="welcome-text">您好，我是您的专属客服经理</p>
      </div>
      <img :src="$props.codeUrl" alt="QRCode" />
      <p>长按识别二维码，添加我的企业微信</p>
    </div>
  </div>
</template>

<script setup>
import { defineProps } from 'vue';
import { Image } from 'vant';

const props = defineProps({
  codeUrl: Object,
});
</script>
<style scoped lang="less">
.service {
  .cont {
    .info {
      margin-bottom: 15px;
      color: @default-color;
      text-align: center;
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
      background-color: @primary-color;
      .avatar-img {
        margin-top: -32px;
        width: 64px;
        height: 64px;
        border: @default-color 2px solid;
      }
      .name {
        margin-top: 8px;
        font-size: @size18;
      }
      .welcome-text {
        padding-bottom: 20px;
      }
    }
    & > img {
      width: 120px;
      height: 120px;
    }
    & > p {
      margin: 15px 0;
      color: #a7a4a4;
      font-size: @size12;
    }
  }
}
</style>
